<script setup lang="ts">
import { onMounted } from 'vue';
import IncidentDisposition from '@/components/IncidentDisposition/index.vue';
import { useIncidentDispositionStore } from '@/store/modules/earlyWarning/useIncidentDispositionStore';

const { tableData } = storeToRefs(useIncidentDispositionStore());
const { goRiskDetection, initWarningInfos } = useIncidentDispositionStore();

// 在组件挂载时初始化警告信息数据
onMounted(() => {
  initWarningInfos();
});
</script>

<template>
  <IncidentDisposition @go-risk-detection="goRiskDetection" :table-data="tableData" />
</template>

<style scoped lang="scss"></style>
